/*
vuex核心管理模块store对象
 */

import Vue from 'vue'
import Vuex from 'vuex'
// 使用 vuex
Vue.use(Vuex)

// import state from '@/store/state'
import mutations from '@/store/mutations'
import actions from '@/store/action'
import getters from '@/store/getters'
// 创建Vuex 实例
const store = new Vuex.Store(
{
        state:{
            num:0,
            arr:[
                {id:1,name:'Ng',score:80},
                {id:2,name:'Vt',score:59},
                {id:3,name:'Zk',score:99}
            ]
        },
        mutations,
        actions,
        getters

    }
)
//导出store
export default store